﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnLineMessage.aspx.cs" Inherits="WebPubManager_OnLineMessage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>留言咨询管理</title>
    <link href="../css/page.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center; margin: 0px auto;" class="page_box">
        <table class="tab_top" width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="17">
                    <img src="../images/tab_top_left.gif" width="17" height="35" alt="" />
                </td>
                <td  align="center">
                    &nbsp;
                </td>
                <td >
                    &nbsp;
                </td>
                <td width="5" align="right">
                    <img src="../images/tab_top_right.gif" width="5" height="35" alt="" />
                </td>
            </tr>
        </table>
        <%-- <table style="width: 99%; border-top-width: 0px" class="tab">
            <tr style="border-top-width: 0px">
                <td style="border-top-width: 0px">--%>
        <controlDefine:CustomGridView ID="gvMessage" runat="server" AllowPaging="True" Width="100%"
            HideTextLength="16" AutoGenerateColumns="False" ShowCmpAndCancel="False" AllowOnMouseOverEvent="False"
            ShowItemNumber="True" AutoGenerateDeleteConfirm="True" CustomSortExpression=""
            ShowHideColModel="None" OnOnLoadData="recvgrid_OnLoadData" SkinID="NewGrid">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="留言主题">
                    <ItemTemplate>
                        <a href='OnLineMsgManager.aspx?id=<%# Eval("id") %>&AdminType=<%# GetAdminType() %>'
                            style="text-align: right">
                            <%# Eval("zt")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="留言类型" DataField="TypeText" />
                <asp:BoundField HeaderText="咨询类型" DataField="msgtext" />
                <asp:BoundField HeaderText="显示类型" DataField="msshowtext" />
                <asp:BoundField HeaderText="留言内容" DataField="notes" />
                <asp:BoundField HeaderText="姓名" DataField="name" />
                <asp:BoundField HeaderText="电话" DataField="sj" Visible="false" />
                <asp:BoundField HeaderText="咨询日期" DataField="createdate" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnDelete" runat="server" OnClick="lbtnDelete_Click" CommandArgument='<%# Eval("id") %>'
                            OnClientClick="return confirm('该信息的回复内容同时会被删除，将不可恢复，确实要删除吗？')">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
        <%--  </td>
            </tr>
        </table>--%>
        <asp:HiddenField ID="hfAdminType" runat="server" Value="0" />
    </div>
    </form>
</body>
</html>
